import {
	baseUrl,
	token
} from "../utils/request.js"
export function getCaptchaImage() {
	return uni.request({
		url: baseUrl + '/prod-api/captchaImage',
		method: "GET"
	});
}

export function login(param) {
	return uni.request({
		url: baseUrl + '/prod-api/login',
		method: "POST",
		data: param
	});
}

export function logout() {
	return uni.request({
		url: baseUrl + '/prod-api/logout',
		header: {
			'Authorization': 'Bearer ' + token()
		},
		method: "POST"
	});
}
